<!DOCTYPE html>
<html>
<head>
   <!-- <script src="../../js/jquery.js"></script>-->
</head>
<body>
<div class="modal" ng-controller="KisBpmAssignmentPopupCtrl">

    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
                <h2 translate><!--PROPERTY.ASSIGNMENT.TITLE-->指定角色</h2>
            </div>
            <div class="modal-body">
            
           <!-- 	<div class="row row-no-gutter">
            		<div class="form-group">
            			<label for="assigneeField">{{'PROPERTY.ASSIGNMENT.ASSIGNEE' | translate}}</label>
            			<input type="text" id="assigneeField" class="form-control" ng-model="assignment.assignee" placeholder="{{'PROPERTY.ASSIGNMENT.ASSIGNEE_PLACEHOLDER' | translate}}" />
            		</div>
            	</div>-->
            	
                <div class="row row-no-gutter">
                 <!--   <div class="form-group">
                    	<label for="userField">{{'PROPERTY.ASSIGNMENT.CANDIDATE_USERS' | translate}}</label>
                        <div ng-repeat="candidateUser in assignment.candidateUsers">
            	            <input id="userField" class="form-control" type="text" ng-model="candidateUser.value"  placeholder="用户"/>
                          &lt;!&ndash;  <select id="userField"  class="form-control" ng-model="candidateUser.value" onclick="getUserGroup()">
                                <option value ="">请选择</option>
                            </select>&ndash;&gt;
            	            <i class="glyphicon glyphicon-minus clickable-property" ng-click="removeCandidateUserValue($index)"></i>
            	            <i ng-if="$index == (assignment.candidateUsers.length - 1)" class="glyphicon glyphicon-plus clickable-property" ng-click="addCandidateUserValue($index)"></i>
                        </div>
                   	</div>-->

                    <!--<div class="form-group">-->
                        <!--<label for="companyField">选择公司</label>-->
                        <!--<div ng-repeat="candidateCompany in assignment.candidateCompanys">-->
                          <!--<select  id="companyField"  class="form-control" ng-model="candidateCompany.value" ng-change="changeDepartment(candidateCompany.value)">-->
                              <!--<option ng-repeat="c in companys" value="{{c.id}}">{{c.companyName}}</option>-->
                          <!--</select>-->
                        <!--</div>-->

                    <!--</div>-->
                    <div class="form-group">
                        <label for="groupField">选择角色</label>
                        <div ng-repeat="candidateGroup in assignment.candidateGroups">
                            <select  id="groupField"  class="form-control" ng-model="candidateGroup.value" >
                                <option ng-repeat="r in roles" value="{{r.roleCode}}">{{r.roleName}}</option>
                            </select>
                        </div>

                    </div>
                  <!--  <div class="form-group"> ng-change="changeUser(candidateRole.value)"
                        <label for="positionField">选择部门</label>
                        <div ng-repeat="candidatePosition in assignment.candidatePositions">
                            <select  id="positionField"  class="form-control" >
                                <option ng-repeat="" value=""></option>
                            </select>
                        </div>
                    </div>-->
                    <!--<div class="form-group">-->
                        <!--<label for="departmentField">选择部门</label>-->
                        <!--&lt;!&ndash;<div ng-repeat="candidatePosition in assignment.candidatePositions">&ndash;&gt;-->
                            <!--<select  id="departmentField"  class="form-control" ng-model="candidateDepartment.value" ng-change="changePosition(candidateDepartment.value)">-->
                                <!--<option ng-repeat="d in departments" value="{{d.id}}">{{d.departmentName}}</option>-->
                            <!--</select>-->
                        <!--&lt;!&ndash;</div>&ndash;&gt;-->

                    <!--</div>-->
            
            <!--        <div class="form-group">
                    	<label for="groupField">选择用户&lt;!&ndash;{{'PROPERTY.ASSIGNMENT.CANDIDATE_GROUPS' | translate}}&ndash;&gt;</label>
                        <div ng-repeat="candidateGroup in assignment.candidateGroups">
            	        &lt;!&ndash;  	<input id="groupField" class="form-control" type="text" ng-model="candidateGroup.value" />&ndash;&gt;
                            <select id="groupField"  class="form-control" ng-model="candidateGroup.value">
                                <option ng-repeat="d in datas" value="{{d.userId}}">{{d.realName}}</option>
                            </select>
            	          	 	<i class="glyphicon glyphicon-minus clickable-property" ng-click="removeCandidateGroupValue($index)"></i>
            	          	<i ng-if="$index == (assignment.candidateGroups.length - 1)" class="glyphicon glyphicon-plus clickable-property" ng-click="addCandidateGroupValue($index)"></i>
                        </div>
                    </div>-->
                </div>
            
            </div>
            <div class="modal-footer">
                <button ng-click="get_Role()" class="btn btn-primary" translate>获取角色</button>
              <!--  <button ng-click="get_more()" class="btn btn-primary" translate>获取用户职位</button>-->
                <button ng-click="close()" class="btn btn-primary" translate>关闭<!--ACTION.CANCEL--></button>
                <button ng-click="save()" class="btn btn-primary" translate>保存<!--ACTION.SAVE--></button>
            </div>
        </div>
    </div>
    <script type="text/javascript">

    </script>
</div>
</body>




